<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>arduino-audio-driver: src/Pins.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">arduino-audio-driver
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Pins.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_pins_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_common_8h.html">Common.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;SPI.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_optional_8h.html">Utils/Optional.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_vector_8h.html">Utils/Vector.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;Wire.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceaudio__driver.html">audio_driver</a> {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">   13</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> = int16_t;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">   20</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> {</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">   21</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>,</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">   22</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>,</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">   23</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, <span class="comment">// Power Amplifier</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">   24</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>,</div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">   25</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>,</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da8268cafd51299d814aba050e5f54f1ac">   26</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da8268cafd51299d814aba050e5f54f1ac">SD</a>,</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">   27</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>,</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62">   28</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62">CODEC_ADC</a>,</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2daee7b2ca70c11e0f499ee23eaf8feac88">   29</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2daee7b2ca70c11e0f499ee23eaf8feac88">MCLK_SOURCE</a>,</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;};</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html">   35</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">   36</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">PinsI2S</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a7e2b632624b902cb96e43d9baa634fa2">   37</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a7e2b632624b902cb96e43d9baa634fa2">PinsI2S</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a486e08135f1b6b249eae9b03d61cfc00">mclk</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#af8de1d912b3bce7c909b1a5182cff261">bck</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ac32cdca204c897f8cfdba3e0017b9b82">ws</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a028ec0cf0cbbe2eba287e7d623e230b2">data_out</a>,</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;          <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">data_in</a> = -1, <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a> = 0) {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    this-&gt;mclk = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a486e08135f1b6b249eae9b03d61cfc00">mclk</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    this-&gt;bck = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#af8de1d912b3bce7c909b1a5182cff261">bck</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    this-&gt;ws = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ac32cdca204c897f8cfdba3e0017b9b82">ws</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    this-&gt;data_out = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a028ec0cf0cbbe2eba287e7d623e230b2">data_out</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">data_in</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">data_in</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  }</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a1263c00bb8bdbdc3d0a9464fe69571f0">   47</a></span>&#160;  <a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a486e08135f1b6b249eae9b03d61cfc00">   48</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a486e08135f1b6b249eae9b03d61cfc00">mclk</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#af8de1d912b3bce7c909b1a5182cff261">   49</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#af8de1d912b3bce7c909b1a5182cff261">bck</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#ac32cdca204c897f8cfdba3e0017b9b82">   50</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ac32cdca204c897f8cfdba3e0017b9b82">ws</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a028ec0cf0cbbe2eba287e7d623e230b2">   51</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a028ec0cf0cbbe2eba287e7d623e230b2">data_out</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">   52</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">data_in</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">   53</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a>; <span class="comment">// port number</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;};</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html">   59</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> {</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">   60</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">PinsSPI</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a9e6bf2f6b156bb4e785548e986c5d625">   61</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a9e6bf2f6b156bb4e785548e986c5d625">PinsSPI</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>,</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;          SPIClass &amp;spi = SPI) {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    this-&gt;clk = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    this-&gt;miso = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    this-&gt;mosi = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    this-&gt;cs = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a> = &amp;spi;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a1263c00bb8bdbdc3d0a9464fe69571f0">   71</a></span>&#160;  <a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">   72</a></span>&#160;  SPIClass *<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a> = &amp;SPI;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">   73</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a> = -1;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">   74</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a> = -1;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">   75</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a> = -1;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">   76</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a> = -1;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">   77</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">   78</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a> != -1; }</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a9b3baad8c612d81b96e46f84d7e97580">   79</a></span>&#160;  <span class="keyword">operator</span> bool() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>(); }</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">   80</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">begin</a>() {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a>) {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      <span class="comment">// setup chip select</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a> != -1) {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        pinMode(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>, OUTPUT);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        digitalWrite(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>, HIGH);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;      }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;      <span class="comment">// if no pins are defined, just call begin</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;      <span class="keywordflow">if</span> (!<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>()) {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <a class="code" href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a>(<span class="stringliteral">&quot;setting up SPI w/o pins&quot;</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">// begin spi and set up pins if supported</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#if defined(ARDUINO_ARCH_STM32)</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        LAUDIODRIVER_LOGIOGI(<span class="stringliteral">&quot;setting up SPI miso:%d,mosi:%d, clk:%d, cs:%d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>,</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;             <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setMISO(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setMOSI(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setSCLK(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setSSEL(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#elif defined(ESP32)</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <a class="code" href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a>(<span class="stringliteral">&quot;setting up SPI miso:%d,mosi:%d, clk:%d, cs:%d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>,</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;             <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">clk</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">mosi</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">cs</a>);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#elif defined(ARDUINO_ARCH_AVR)</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        LOGW(<span class="stringliteral">&quot;setting up SPI w/o pins&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;      }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  }</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">  113</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">end</a>() { <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;end(); }</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#aaf3b64a3ae53f98ca43e71d9f1b76712">  119</a></span>&#160;<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> <a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>{<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da8268cafd51299d814aba050e5f54f1ac">SD</a>, 14, 2, 15, 13, SPI};</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html">  124</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> {</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">  125</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">PinsI2C</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a07571b6b20339404f8c08b489262e17c">  126</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a07571b6b20339404f8c08b489262e17c">PinsI2C</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>, <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = -1,</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;          uint32_t <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = 100000, TwoWire &amp;wire = Wire) {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    this-&gt;scl = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    this-&gt;sda = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a> = &amp;wire;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a1263c00bb8bdbdc3d0a9464fe69571f0">  136</a></span>&#160;  <a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">  137</a></span>&#160;  uint32_t <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = 100000;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">  138</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = -1;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">  139</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a> = -1;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">  140</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a> = -1;</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">  141</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">  142</a></span>&#160;  TwoWire *<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">  143</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> != 0; }</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a9b3baad8c612d81b96e46f84d7e97580">  144</a></span>&#160;  <span class="keyword">operator</span> bool() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>(); }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">  146</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">begin</a>() {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a>) {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;      <span class="comment">// if no pins are defined, just call begin</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;      <span class="keywordflow">if</span> (!<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>()) {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <a class="code" href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a>(<span class="stringliteral">&quot;setting up I2C w/o pins&quot;</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;      } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="comment">// begin with defined pins, if supported</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#if defined(ESP32) || defined(ARDUINO_ARCH_STM32)</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <a class="code" href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a>(<span class="stringliteral">&quot;setting up I2C scl: %d, sda: %d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#elif defined(ARDUINO_ARCH_RP2040)</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <a class="code" href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a>(<span class="stringliteral">&quot;setting up I2C scl: %d, sda: %d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setSCL(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setSDA(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        LOGW(<span class="stringliteral">&quot;setting up I2C w/o pins&quot;</span>);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;      }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;      }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;      LOGI(<span class="stringliteral">&quot;Setting i2c clock: %u&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;      <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setClock(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    }</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a930920b2bc42824a5c03be681830f4b2">  171</a></span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="namespaceaudio__driver.html#aaf3b64a3ae53f98ca43e71d9f1b76712">end</a>() { <a class="code" href="_pins_8h.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;end(); }</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="_pins_8h.html#a08d333b7e1375eea735049bbae42f437">  174</a></span>&#160;};</div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="_pins_8h.html#a0757f573760110d4e554a34cc3608746">  175</a></span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="struct_pins_function.html">  179</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_pins_function.html">PinsFunction</a> {</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="struct_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">  180</a></span>&#160;  <a class="code" href="struct_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">PinsFunction</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="struct_pins_function.html#a657b392e9d7607368d5043d7e591bfb7">  181</a></span>&#160;  <a class="code" href="struct_pins_function.html#a657b392e9d7607368d5043d7e591bfb7">PinsFunction</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="struct_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a>, <span class="keywordtype">int</span> <a class="code" href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = 0) {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    this-&gt;pin = <a class="code" href="struct_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a>;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    this-&gt;<a class="code" href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = <a class="code" href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="_pins_8h.html#a1263c00bb8bdbdc3d0a9464fe69571f0">  185</a></span>&#160;  }</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="struct_pins_function.html#a1263c00bb8bdbdc3d0a9464fe69571f0">  186</a></span>&#160;  <a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="struct_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">  187</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="struct_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a> = -1;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">  188</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = 0;</div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="_pins_8h.html#a964e0e55c51da6a06624e0f15f084b05">  189</a></span>&#160;};</div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="_pins_8h.html#afcc542ba9c5c0e2fbba65a0feab74508">  190</a></span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="_pins_8h.html#a4e9ae2ff975f90f3cb4b07b006acf7a3">  195</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">  197</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(PinsI2S pin) { <a class="code" href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">i2s</a>.push_back(pin); }</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="class_driver_pins.html#abdc5479249d6020db5be831e0c82862b">  198</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#abdc5479249d6020db5be831e0c82862b">addI2S</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> mclk, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> bck, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> ws, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> data_out,</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;              <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> data_in = -1, <span class="keywordtype">int</span> <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a> = 0) {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    PinsI2S pin{<span class="keyword">function</span>, mclk, bck, ws, data_out, data_in, <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a>};</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(pin);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  }</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">  203</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(PinsSPI pin) { <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>.push_back(pin); }</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="class_driver_pins.html#acfd126803bc7df716be7cae95609b3c7">  204</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#acfd126803bc7df716be7cae95609b3c7">addSPI</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> clk, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> miso, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> mosi, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> cs,</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;              SPIClass &amp;<a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a> = SPI) {</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    PinsSPI pin(<span class="keyword">function</span>, clk, miso, mosi, cs, <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(pin);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;  }</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">  210</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="_pins_8h.html#a08d333b7e1375eea735049bbae42f437">PinsI2C</a> pin) { <a class="code" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">i2c</a>.push_back(pin); }</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a78e4a45b86b5606327bd7fb0e7799b95">  211</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#a78e4a45b86b5606327bd7fb0e7799b95">addI2C</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="_pins_8h.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="_pins_8h.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>, <span class="keywordtype">int</span> <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a> = -1,</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;          uint32_t <a class="code" href="_pins_8h.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = 100000, TwoWire &amp;wire = Wire) {</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <a class="code" href="_pins_8h.html#a08d333b7e1375eea735049bbae42f437">PinsI2C</a> pin(<span class="keyword">function</span>, <a class="code" href="_pins_8h.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a>, <a class="code" href="_pins_8h.html#a964e0e55c51da6a06624e0f15f084b05">sda</a>, <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a>, <a class="code" href="_pins_8h.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(pin);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">  217</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="struct_pins_function.html">PinsFunction</a> pin) { <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>.push_back(pin); }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="class_driver_pins.html#aedb77ae3bd69931ff80d786bc7900bb7">  219</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#aedb77ae3bd69931ff80d786bc7900bb7">addPin</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> pinNo, <span class="keywordtype">int</span> index = 0) {</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="_pins_8h.html#a930920b2bc42824a5c03be681830f4b2">  220</a></span>&#160;    <a class="code" href="struct_pins_function.html">PinsFunction</a> pin(<span class="keyword">function</span>, pinNo, index);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(pin);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;  }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a8aa18f4a0d37fb65f753664a4a5df94e">  224</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="class_driver_pins.html#a8aa18f4a0d37fb65f753664a4a5df94e">getPin</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>) {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="struct_pins_function.html">PinsFunction</a> &amp;pin : <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>) {</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;      <span class="keywordflow">if</span> (pin.function == <span class="keyword">function</span>)</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">return</span> pin.pin;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    }</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">return</span> -1;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;  }</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160; </div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a07f592a1454bcf1f6e6f0fdebc7b9df4">  232</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">Pin</a> <a class="code" href="class_driver_pins.html#a07f592a1454bcf1f6e6f0fdebc7b9df4">getPin</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>, <span class="keywordtype">int</span> pos) {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="struct_pins_function.html">PinsFunction</a> &amp;pin : <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>) {</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;      <span class="keywordflow">if</span> (pin.function == <span class="keyword">function</span> &amp;&amp; pin.index == pos)</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <span class="keywordflow">return</span> pin.pin;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keywordflow">return</span> -1;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  }</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160; </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="class_driver_pins.html#aea4301085a18ae090ccba2311b93c723">  240</a></span>&#160;  Optional&lt;PinsI2C&gt; <a class="code" href="class_driver_pins.html#aea4301085a18ae090ccba2311b93c723">getI2CPins</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>) {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="_pins_8h.html#a08d333b7e1375eea735049bbae42f437">PinsI2C</a> &amp;pin : <a class="code" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">i2c</a>) {</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;      <span class="keywordflow">if</span> (pin.function == <span class="keyword">function</span>)</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keywordflow">return</span> pin;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    }</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; </div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a389a81a6a8575f68f6a3aed265b91158">  248</a></span>&#160;  Optional&lt;PinsSPI&gt; <a class="code" href="class_driver_pins.html#a389a81a6a8575f68f6a3aed265b91158">getSPIPins</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span>) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordflow">for</span> (PinsSPI &amp;<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a> : <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>) {</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>.function == <span class="keyword">function</span>)</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;  }</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a9b9690f0ac5dd6431942177faf6ccdb0">  257</a></span>&#160;  Optional&lt;PinsI2S&gt; <a class="code" href="class_driver_pins.html#a9b9690f0ac5dd6431942177faf6ccdb0">getI2SPins</a>(<span class="keywordtype">int</span> <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a>) {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordflow">for</span> (PinsI2S &amp;<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a> : <a class="code" href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">i2s</a>) {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>.port == <a class="code" href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a>)</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  }</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a06a94f81c993096632740b75d6c63daf">  266</a></span>&#160;  Optional&lt;PinsI2S&gt; <a class="code" href="class_driver_pins.html#a06a94f81c993096632740b75d6c63daf">getI2SPins</a>(<a class="code" href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">PinFunctionEnum</a> <span class="keyword">function</span> = <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>) {</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordflow">for</span> (PinsI2S &amp;<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a> : <a class="code" href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">i2s</a>) {</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>.function == <span class="keyword">function</span>)</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>;</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;  }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">  274</a></span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">begin</a>() {</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="comment">// setup spi</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="keywordtype">bool</span> result = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>) {</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;      result &amp;= tmp.begin();</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    }</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="comment">// setup i2c</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">i2c</a>) {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;      result &amp;= tmp.begin();</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    }</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="comment">// setup pins</span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>) {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;      <span class="keywordflow">if</span> (tmp.pin != -1) {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keywordflow">switch</span> (tmp.function) {</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>:</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;          pinMode(tmp.pin, INPUT_PULLUP);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>:</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;          pinMode(tmp.pin, INPUT_PULLUP);</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>:</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;          pinMode(tmp.pin, INPUT);</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>:</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;          pinMode(tmp.pin, OUTPUT);</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>:</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;          pinMode(tmp.pin, OUTPUT);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;          digitalWrite(tmp.pin, HIGH);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;      }</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    }</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="class_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">  311</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="class_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">end</a>() {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="comment">// setup spi</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>) {</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;      tmp.end();</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    }</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <span class="comment">// setup i2c</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">i2c</a>) {</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;      tmp.end();</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    }</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;  }</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">  323</a></span>&#160;  Vector&lt;PinsI2S&gt; <a class="code" href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">i2s</a>{0};</div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">  324</a></span>&#160;  Vector&lt;PinsSPI&gt; <a class="code" href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">spi</a>{0};</div>
<div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">  325</a></span>&#160;  Vector&lt;PinsI2C&gt; <a class="code" href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">i2c</a>{0};</div>
<div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">  326</a></span>&#160;  Vector&lt;PinsFunction&gt; <a class="code" href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">pins</a>{0};</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;};</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="class_pins_lyrat43_class.html">  332</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_lyrat43_class.html">PinsLyrat43Class</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="class_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">  334</a></span>&#160;  <a class="code" href="class_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">PinsLyrat43Class</a>() {</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 23, 18, 0x20);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160; </div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 36, 1);</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 39, 2);</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 33, 3);</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 32, 4);</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 13, 5);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 27, 6);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>, 12);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>, 19);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;  }</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;};</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="class_pins_lyrat42_class.html">  359</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_lyrat42_class.html">PinsLyrat42Class</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="class_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">  361</a></span>&#160;  <a class="code" href="class_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">PinsLyrat42Class</a>() {</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 23, 18, 0x20);</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 36, 1);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 39, 2);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 33, 3);</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 32, 4);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 13, 5);</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 27, 6);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>, 12);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22, 1);</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 19, 2);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;  }</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;};</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="class_pins_lyrat_mini_class.html">  386</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_lyrat_mini_class.html">PinsLyratMiniClass</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="class_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">  388</a></span>&#160;  <a class="code" href="class_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">PinsLyratMiniClass</a>() {</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 23, 18, 0x20);</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 5, 25, 26, 35, 0);</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62">CODEC_ADC</a>, 0, 32, 33, -1, 36, 1);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 5, 1);</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 4, 2);</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 2, 3);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 3, 4);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 1, 5);</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="comment">//    addPin(KEY, 0, 6};</span></div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>, 19);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22, 1);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 27, 2);</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2daee7b2ca70c11e0f499ee23eaf8feac88">MCLK_SOURCE</a>, 0);</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;  }</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;};</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_es8388v1_class.html">  415</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_audio_kit_es8388v1_class.html">PinsAudioKitEs8388v1Class</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00417"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">  417</a></span>&#160;  <a class="code" href="class_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">PinsAudioKitEs8388v1Class</a>() {</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 32, 33, 0x20);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 27, 25, 26, 35);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160; </div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 36, 1);</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 13, 2);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 19, 3);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 23, 4);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 18, 5);</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 5, 6);</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>, 12);</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>, 39);</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22);</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;  }</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;};</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160; </div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_es8388v2_class.html">  442</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_audio_kit_es8388v2_class.html">PinsAudioKitEs8388v2Class</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00444"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">  444</a></span>&#160;  <a class="code" href="class_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">PinsAudioKitEs8388v2Class</a>() {</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 23, 18, 0x20);</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160; </div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 36, 1);</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 13, 2);</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 19, 3);</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 23, 4);</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 18, 5);</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 5, 6);</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">AUXIN_DETECT</a>, 12);</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>, 39);</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22);</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;  }</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;};</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160; </div>
<div class="line"><a name="l00469"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_a_c101_class.html">  469</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_pins_audio_kit_a_c101_class.html">PinsAudioKitAC101Class</a> : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="class_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">  471</a></span>&#160;  <a class="code" href="class_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">PinsAudioKitAC101Class</a>() {</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    <a class="code" href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 32, 22, 0x20);</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, 0, 27, 26, 25, 35);</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160; </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 36, 1);</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 13, 2);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 19, 3);</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 23, 4);</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 18, 5);</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, 5, 6);</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 22);</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, 19);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">HEADPHONE_DETECT</a>, 5);</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, 21);</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;  }</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;};</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160; </div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;<span class="preprocessor">#if defined(ARDUINO_ARCH_STM32)</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160; </div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;<span class="keyword">class </span>PinsSTM32F411DiscoClass : <span class="keyword">public</span> <a class="code" href="class_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;  PinsSTM32F411DiscoClass() {</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <a class="code" href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, PB6, PB9, 0x25);</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <a class="code" href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">CODEC</a>, PC7, PC10, PA4, PC3, PC12);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160; </div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">KEY</a>, PA0);       <span class="comment">// user button</span></div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, PD12, 0);   <span class="comment">// green</span></div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, PD5, 1);    <span class="comment">// red</span></div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, PD13, 2);   <span class="comment">// orange</span></div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, PD14, 3);   <span class="comment">// red</span></div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">LED</a>, PD15, 4);   <span class="comment">// blue</span></div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">PA</a>, PD4);        <span class="comment">// reset pin (active high)</span></div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    <a class="code" href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62">CODEC_ADC</a>, PC3); <span class="comment">// Microphone</span></div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;  }</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;} PinsSTM32F411Disco;</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160; </div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;} <span class="comment">// namespace audio_driver</span></div>
<div class="ttc" id="a_common_8h_html"><div class="ttname"><a href="_common_8h.html">Common.h</a></div></div>
<div class="ttc" id="a_logger_8c_html_a0f6014490e4228fc8d23f63c35480620"><div class="ttname"><a href="_logger_8c.html#a0f6014490e4228fc8d23f63c35480620">AUDIODRIVER_LOGI</a></div><div class="ttdeci">void AUDIODRIVER_LOGI(const char *fmr,...)</div><div class="ttdef"><b>Definition:</b> Logger.c:22</div></div>
<div class="ttc" id="a_optional_8h_html"><div class="ttname"><a href="_optional_8h.html">Optional.h</a></div></div>
<div class="ttc" id="a_pins_8h_html_a08d333b7e1375eea735049bbae42f437"><div class="ttname"><a href="_pins_8h.html#a08d333b7e1375eea735049bbae42f437">PinsI2C</a></div><div class="ttdeci">PinsI2C()=default</div></div>
<div class="ttc" id="a_pins_8h_html_a08e5ee49dec28418c38645b7f0d2801e"><div class="ttname"><a href="_pins_8h.html#a08e5ee49dec28418c38645b7f0d2801e">scl</a></div><div class="ttdeci">Pin scl</div><div class="ttdef"><b>Definition:</b> Pins.h:188</div></div>
<div class="ttc" id="a_pins_8h_html_a63c89c04d1feae07ca35558055155ffb"><div class="ttname"><a href="_pins_8h.html#a63c89c04d1feae07ca35558055155ffb">port</a></div><div class="ttdeci">int port</div><div class="ttdef"><b>Definition:</b> Pins.h:187</div></div>
<div class="ttc" id="a_pins_8h_html_a682f8efbc92ac93c85e4f18798050bb7"><div class="ttname"><a href="_pins_8h.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a></div><div class="ttdeci">TwoWire * p_wire</div><div class="ttdef"><b>Definition:</b> Pins.h:191</div></div>
<div class="ttc" id="a_pins_8h_html_a964e0e55c51da6a06624e0f15f084b05"><div class="ttname"><a href="_pins_8h.html#a964e0e55c51da6a06624e0f15f084b05">sda</a></div><div class="ttdeci">Pin sda</div><div class="ttdef"><b>Definition:</b> Pins.h:189</div></div>
<div class="ttc" id="a_pins_8h_html_ab632fb0b4d5156ea4df0b1e15410e913"><div class="ttname"><a href="_pins_8h.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a></div><div class="ttdeci">uint32_t frequency</div><div class="ttdef"><b>Definition:</b> Pins.h:186</div></div>
<div class="ttc" id="a_vector_8h_html"><div class="ttname"><a href="_vector_8h.html">Vector.h</a></div></div>
<div class="ttc" id="aclass_driver_pins_html"><div class="ttname"><a href="class_driver_pins.html">DriverPins</a></div><div class="ttdoc">All pins for i2s, spi, i2c and other pins.</div><div class="ttdef"><b>Definition:</b> Pins.h:195</div></div>
<div class="ttc" id="aclass_driver_pins_html_a00a10ef4df43dd641a616c82458fbbab"><div class="ttname"><a href="class_driver_pins.html#a00a10ef4df43dd641a616c82458fbbab">DriverPins::spi</a></div><div class="ttdeci">Vector&lt; PinsSPI &gt; spi</div><div class="ttdef"><b>Definition:</b> Pins.h:324</div></div>
<div class="ttc" id="aclass_driver_pins_html_a06a94f81c993096632740b75d6c63daf"><div class="ttname"><a href="class_driver_pins.html#a06a94f81c993096632740b75d6c63daf">DriverPins::getI2SPins</a></div><div class="ttdeci">Optional&lt; PinsI2S &gt; getI2SPins(PinFunctionEnum function=CODEC)</div><div class="ttdoc">Finds the I2S pins with the help of the function.</div><div class="ttdef"><b>Definition:</b> Pins.h:266</div></div>
<div class="ttc" id="aclass_driver_pins_html_a07f592a1454bcf1f6e6f0fdebc7b9df4"><div class="ttname"><a href="class_driver_pins.html#a07f592a1454bcf1f6e6f0fdebc7b9df4">DriverPins::getPin</a></div><div class="ttdeci">Pin getPin(PinFunctionEnum function, int pos)</div><div class="ttdef"><b>Definition:</b> Pins.h:232</div></div>
<div class="ttc" id="aclass_driver_pins_html_a2cf8a5567d24dcc073cd836df6c0d16c"><div class="ttname"><a href="class_driver_pins.html#a2cf8a5567d24dcc073cd836df6c0d16c">DriverPins::addI2S</a></div><div class="ttdeci">void addI2S(PinsI2S pin)</div><div class="ttdef"><b>Definition:</b> Pins.h:197</div></div>
<div class="ttc" id="aclass_driver_pins_html_a34d4832fe16477602735e9295c025f2f"><div class="ttname"><a href="class_driver_pins.html#a34d4832fe16477602735e9295c025f2f">DriverPins::addSPI</a></div><div class="ttdeci">void addSPI(PinsSPI pin)</div><div class="ttdef"><b>Definition:</b> Pins.h:203</div></div>
<div class="ttc" id="aclass_driver_pins_html_a389a81a6a8575f68f6a3aed265b91158"><div class="ttname"><a href="class_driver_pins.html#a389a81a6a8575f68f6a3aed265b91158">DriverPins::getSPIPins</a></div><div class="ttdeci">Optional&lt; PinsSPI &gt; getSPIPins(PinFunctionEnum function)</div><div class="ttdef"><b>Definition:</b> Pins.h:248</div></div>
<div class="ttc" id="aclass_driver_pins_html_a471f57d7da5f76b0354c820e5c57a4e6"><div class="ttname"><a href="class_driver_pins.html#a471f57d7da5f76b0354c820e5c57a4e6">DriverPins::pins</a></div><div class="ttdeci">Vector&lt; PinsFunction &gt; pins</div><div class="ttdef"><b>Definition:</b> Pins.h:326</div></div>
<div class="ttc" id="aclass_driver_pins_html_a490f85a68f3a18a47bf5de4de4c2cce4"><div class="ttname"><a href="class_driver_pins.html#a490f85a68f3a18a47bf5de4de4c2cce4">DriverPins::addI2C</a></div><div class="ttdeci">void addI2C(PinsI2C pin)</div><div class="ttdef"><b>Definition:</b> Pins.h:210</div></div>
<div class="ttc" id="aclass_driver_pins_html_a50f45551c10ca30a0bc7f447e70188b1"><div class="ttname"><a href="class_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">DriverPins::begin</a></div><div class="ttdeci">virtual bool begin()</div><div class="ttdef"><b>Definition:</b> Pins.h:274</div></div>
<div class="ttc" id="aclass_driver_pins_html_a722e56e8d76666b0937b157c765f0a3a"><div class="ttname"><a href="class_driver_pins.html#a722e56e8d76666b0937b157c765f0a3a">DriverPins::addPin</a></div><div class="ttdeci">void addPin(PinsFunction pin)</div><div class="ttdef"><b>Definition:</b> Pins.h:217</div></div>
<div class="ttc" id="aclass_driver_pins_html_a78e4a45b86b5606327bd7fb0e7799b95"><div class="ttname"><a href="class_driver_pins.html#a78e4a45b86b5606327bd7fb0e7799b95">DriverPins::addI2C</a></div><div class="ttdeci">void addI2C(PinFunctionEnum function, Pin scl, Pin sda, int port=-1, uint32_t frequency=100000, TwoWire &amp;wire=Wire)</div><div class="ttdef"><b>Definition:</b> Pins.h:211</div></div>
<div class="ttc" id="aclass_driver_pins_html_a8aa18f4a0d37fb65f753664a4a5df94e"><div class="ttname"><a href="class_driver_pins.html#a8aa18f4a0d37fb65f753664a4a5df94e">DriverPins::getPin</a></div><div class="ttdeci">Pin getPin(PinFunctionEnum function)</div><div class="ttdef"><b>Definition:</b> Pins.h:224</div></div>
<div class="ttc" id="aclass_driver_pins_html_a9b9690f0ac5dd6431942177faf6ccdb0"><div class="ttname"><a href="class_driver_pins.html#a9b9690f0ac5dd6431942177faf6ccdb0">DriverPins::getI2SPins</a></div><div class="ttdeci">Optional&lt; PinsI2S &gt; getI2SPins(int port)</div><div class="ttdoc">Finds the I2S pins with the help of the port.</div><div class="ttdef"><b>Definition:</b> Pins.h:257</div></div>
<div class="ttc" id="aclass_driver_pins_html_aa02f04732513a19e5154ced17285c5a8"><div class="ttname"><a href="class_driver_pins.html#aa02f04732513a19e5154ced17285c5a8">DriverPins::i2c</a></div><div class="ttdeci">Vector&lt; PinsI2C &gt; i2c</div><div class="ttdef"><b>Definition:</b> Pins.h:325</div></div>
<div class="ttc" id="aclass_driver_pins_html_aaf81d3fdaf258088d7692fa70cece087"><div class="ttname"><a href="class_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">DriverPins::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> Pins.h:311</div></div>
<div class="ttc" id="aclass_driver_pins_html_abdc5479249d6020db5be831e0c82862b"><div class="ttname"><a href="class_driver_pins.html#abdc5479249d6020db5be831e0c82862b">DriverPins::addI2S</a></div><div class="ttdeci">void addI2S(PinFunctionEnum function, Pin mclk, Pin bck, Pin ws, Pin data_out, Pin data_in=-1, int port=0)</div><div class="ttdef"><b>Definition:</b> Pins.h:198</div></div>
<div class="ttc" id="aclass_driver_pins_html_ac2742d7979a485a6594b8b9591c3e0f0"><div class="ttname"><a href="class_driver_pins.html#ac2742d7979a485a6594b8b9591c3e0f0">DriverPins::i2s</a></div><div class="ttdeci">Vector&lt; PinsI2S &gt; i2s</div><div class="ttdef"><b>Definition:</b> Pins.h:323</div></div>
<div class="ttc" id="aclass_driver_pins_html_acfd126803bc7df716be7cae95609b3c7"><div class="ttname"><a href="class_driver_pins.html#acfd126803bc7df716be7cae95609b3c7">DriverPins::addSPI</a></div><div class="ttdeci">void addSPI(PinFunctionEnum function, Pin clk, Pin miso, Pin mosi, Pin cs, SPIClass &amp;spi=SPI)</div><div class="ttdef"><b>Definition:</b> Pins.h:204</div></div>
<div class="ttc" id="aclass_driver_pins_html_aea4301085a18ae090ccba2311b93c723"><div class="ttname"><a href="class_driver_pins.html#aea4301085a18ae090ccba2311b93c723">DriverPins::getI2CPins</a></div><div class="ttdeci">Optional&lt; PinsI2C &gt; getI2CPins(PinFunctionEnum function)</div><div class="ttdef"><b>Definition:</b> Pins.h:240</div></div>
<div class="ttc" id="aclass_driver_pins_html_aedb77ae3bd69931ff80d786bc7900bb7"><div class="ttname"><a href="class_driver_pins.html#aedb77ae3bd69931ff80d786bc7900bb7">DriverPins::addPin</a></div><div class="ttdeci">void addPin(PinFunctionEnum function, Pin pinNo, int index=0)</div><div class="ttdef"><b>Definition:</b> Pins.h:219</div></div>
<div class="ttc" id="aclass_pins_audio_kit_a_c101_class_html"><div class="ttname"><a href="class_pins_audio_kit_a_c101_class.html">PinsAudioKitAC101Class</a></div><div class="ttdoc">Pins for alt AC101 AudioDriver - use the PinsAudioKitAC101 object!</div><div class="ttdef"><b>Definition:</b> Pins.h:469</div></div>
<div class="ttc" id="aclass_pins_audio_kit_a_c101_class_html_af8047f806dd07e4e7fb9af3b1046445c"><div class="ttname"><a href="class_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">PinsAudioKitAC101Class::PinsAudioKitAC101Class</a></div><div class="ttdeci">PinsAudioKitAC101Class()</div><div class="ttdef"><b>Definition:</b> Pins.h:471</div></div>
<div class="ttc" id="aclass_pins_audio_kit_es8388v1_class_html"><div class="ttname"><a href="class_pins_audio_kit_es8388v1_class.html">PinsAudioKitEs8388v1Class</a></div><div class="ttdoc">Pins for Es8388 AudioDriver - use the PinsAudioKitEs8388v1 object!</div><div class="ttdef"><b>Definition:</b> Pins.h:415</div></div>
<div class="ttc" id="aclass_pins_audio_kit_es8388v1_class_html_ad2457c35beb9c8bc89440e0fb8ce98b2"><div class="ttname"><a href="class_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">PinsAudioKitEs8388v1Class::PinsAudioKitEs8388v1Class</a></div><div class="ttdeci">PinsAudioKitEs8388v1Class()</div><div class="ttdef"><b>Definition:</b> Pins.h:417</div></div>
<div class="ttc" id="aclass_pins_audio_kit_es8388v2_class_html"><div class="ttname"><a href="class_pins_audio_kit_es8388v2_class.html">PinsAudioKitEs8388v2Class</a></div><div class="ttdoc">Pins for alt Es8388 AudioDriver - use the PinsAudioKitEs8388v2 object!</div><div class="ttdef"><b>Definition:</b> Pins.h:442</div></div>
<div class="ttc" id="aclass_pins_audio_kit_es8388v2_class_html_ae3b3d5b5559c7f0b13071e5c885c6499"><div class="ttname"><a href="class_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">PinsAudioKitEs8388v2Class::PinsAudioKitEs8388v2Class</a></div><div class="ttdeci">PinsAudioKitEs8388v2Class()</div><div class="ttdef"><b>Definition:</b> Pins.h:444</div></div>
<div class="ttc" id="aclass_pins_lyrat42_class_html"><div class="ttname"><a href="class_pins_lyrat42_class.html">PinsLyrat42Class</a></div><div class="ttdoc">Pins for Lyrat 4.2 - use the PinsLyrat42 object!</div><div class="ttdef"><b>Definition:</b> Pins.h:359</div></div>
<div class="ttc" id="aclass_pins_lyrat42_class_html_acfc0872a03d51197990856f66020e06f"><div class="ttname"><a href="class_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">PinsLyrat42Class::PinsLyrat42Class</a></div><div class="ttdeci">PinsLyrat42Class()</div><div class="ttdef"><b>Definition:</b> Pins.h:361</div></div>
<div class="ttc" id="aclass_pins_lyrat43_class_html"><div class="ttname"><a href="class_pins_lyrat43_class.html">PinsLyrat43Class</a></div><div class="ttdoc">Pins for Lyrat 4.3 - use the PinsLyrat43 object!</div><div class="ttdef"><b>Definition:</b> Pins.h:332</div></div>
<div class="ttc" id="aclass_pins_lyrat43_class_html_ac30ab2e6f979a7bcabb1adf4a4ff127d"><div class="ttname"><a href="class_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">PinsLyrat43Class::PinsLyrat43Class</a></div><div class="ttdeci">PinsLyrat43Class()</div><div class="ttdef"><b>Definition:</b> Pins.h:334</div></div>
<div class="ttc" id="aclass_pins_lyrat_mini_class_html"><div class="ttname"><a href="class_pins_lyrat_mini_class.html">PinsLyratMiniClass</a></div><div class="ttdoc">Pins for Lyrat Mini - use the PinsLyratMini object!</div><div class="ttdef"><b>Definition:</b> Pins.h:386</div></div>
<div class="ttc" id="aclass_pins_lyrat_mini_class_html_a07d0e3d40548cb1043e8f426b2a66e9d"><div class="ttname"><a href="class_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">PinsLyratMiniClass::PinsLyratMiniClass</a></div><div class="ttdeci">PinsLyratMiniClass()</div><div class="ttdef"><b>Definition:</b> Pins.h:388</div></div>
<div class="ttc" id="agroup__enumerations_html_ga51b3e3c8b963c44ee453d086e36fbc2d"><div class="ttname"><a href="group__enumerations.html#ga51b3e3c8b963c44ee453d086e36fbc2d">audio_driver::PinFunctionEnum</a></div><div class="ttdeci">PinFunctionEnum</div><div class="ttdoc">Pin Functions.</div><div class="ttdef"><b>Definition:</b> Pins.h:20</div></div>
<div class="ttc" id="anamespaceaudio__driver_html"><div class="ttname"><a href="namespaceaudio__driver.html">audio_driver</a></div><div class="ttdef"><b>Definition:</b> AudioBoard.h:5</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_a25716c39f0f3e90d31ed6c5084f9d358"><div class="ttname"><a href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">audio_driver::ESP32PinsSD</a></div><div class="ttdeci">PinsSPI ESP32PinsSD</div><div class="ttdoc">Default SPI pins for ESP32 Lyrat, AudioDriver etc.</div><div class="ttdef"><b>Definition:</b> Pins.h:119</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_aaf3b64a3ae53f98ca43e71d9f1b76712"><div class="ttname"><a href="namespaceaudio__driver.html#aaf3b64a3ae53f98ca43e71d9f1b76712">audio_driver::end</a></div><div class="ttdeci">struct audio_driver::PinsI2C end()</div><div class="ttdef"><b>Definition:</b> Pins.h:173</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ab6aa72f571ce70030fe5f9dcba7e7d3b"><div class="ttname"><a href="namespaceaudio__driver.html#ab6aa72f571ce70030fe5f9dcba7e7d3b">audio_driver::Pin</a></div><div class="ttdeci">int16_t Pin</div><div class="ttdef"><b>Definition:</b> Pins.h:13</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da147e71049e3285d642d0d5268dba260f">audio_driver::KEY</a></div><div class="ttdeci">@ KEY</div><div class="ttdef"><b>Definition:</b> Pins.h:25</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da21447137d62c46e603b924d455e8cd12">audio_driver::LED</a></div><div class="ttdeci">@ LED</div><div class="ttdef"><b>Definition:</b> Pins.h:24</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da32e994791066897c30f89f1083508f62">audio_driver::CODEC_ADC</a></div><div class="ttdeci">@ CODEC_ADC</div><div class="ttdef"><b>Definition:</b> Pins.h:28</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da3b1d027ef0c7749664aa744ad5e4f937">audio_driver::CODEC</a></div><div class="ttdeci">@ CODEC</div><div class="ttdef"><b>Definition:</b> Pins.h:27</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da8268cafd51299d814aba050e5f54f1ac"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da8268cafd51299d814aba050e5f54f1ac">audio_driver::SD</a></div><div class="ttdeci">@ SD</div><div class="ttdef"><b>Definition:</b> Pins.h:26</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2da87598811c2d981e1b55904f10effed42">audio_driver::AUXIN_DETECT</a></div><div class="ttdeci">@ AUXIN_DETECT</div><div class="ttdef"><b>Definition:</b> Pins.h:22</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dab0f2e2f80cf61b263b22dfde0b337d70">audio_driver::HEADPHONE_DETECT</a></div><div class="ttdeci">@ HEADPHONE_DETECT</div><div class="ttdef"><b>Definition:</b> Pins.h:21</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2dae3d8a811f3bf7196f361be4104db68db">audio_driver::PA</a></div><div class="ttdeci">@ PA</div><div class="ttdef"><b>Definition:</b> Pins.h:23</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga51b3e3c8b963c44ee453d086e36fbc2daee7b2ca70c11e0f499ee23eaf8feac88"><div class="ttname"><a href="namespaceaudio__driver.html#ga51b3e3c8b963c44ee453d086e36fbc2daee7b2ca70c11e0f499ee23eaf8feac88">audio_driver::MCLK_SOURCE</a></div><div class="ttdeci">@ MCLK_SOURCE</div><div class="ttdef"><b>Definition:</b> Pins.h:29</div></div>
<div class="ttc" id="astruct_pins_function_html"><div class="ttname"><a href="struct_pins_function.html">PinsFunction</a></div><div class="ttdoc">Pins for LED, Buttons, AMP etc.</div><div class="ttdef"><b>Definition:</b> Pins.h:179</div></div>
<div class="ttc" id="astruct_pins_function_html_a657b392e9d7607368d5043d7e591bfb7"><div class="ttname"><a href="struct_pins_function.html#a657b392e9d7607368d5043d7e591bfb7">PinsFunction::PinsFunction</a></div><div class="ttdeci">PinsFunction(PinFunctionEnum function, Pin pin, int index=0)</div><div class="ttdef"><b>Definition:</b> Pins.h:181</div></div>
<div class="ttc" id="astruct_pins_function_html_a750b5d744c39a06bfb13e6eb010e35d0"><div class="ttname"><a href="struct_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">PinsFunction::index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> Pins.h:188</div></div>
<div class="ttc" id="astruct_pins_function_html_aeabac9491522ec7f68102bfeab33d5c1"><div class="ttname"><a href="struct_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">PinsFunction::pin</a></div><div class="ttdeci">int pin</div><div class="ttdef"><b>Definition:</b> Pins.h:187</div></div>
<div class="ttc" id="astruct_pins_function_html_affc9db000aeafd2b8bc4a905b8ec7467"><div class="ttname"><a href="struct_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">PinsFunction::PinsFunction</a></div><div class="ttdeci">PinsFunction()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html">audio_driver::PinsI2C</a></div><div class="ttdoc">I2C pins.</div><div class="ttdef"><b>Definition:</b> Pins.h:124</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a07571b6b20339404f8c08b489262e17c"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a07571b6b20339404f8c08b489262e17c">audio_driver::PinsI2C::PinsI2C</a></div><div class="ttdeci">PinsI2C(PinFunctionEnum function, Pin scl, Pin sda, int port=-1, uint32_t frequency=100000, TwoWire &amp;wire=Wire)</div><div class="ttdef"><b>Definition:</b> Pins.h:126</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a08e5ee49dec28418c38645b7f0d2801e"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a08e5ee49dec28418c38645b7f0d2801e">audio_driver::PinsI2C::scl</a></div><div class="ttdeci">Pin scl</div><div class="ttdef"><b>Definition:</b> Pins.h:139</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a55ca58ba71e8274ece07c6455513ad8e"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">audio_driver::PinsI2C::PinsI2C</a></div><div class="ttdeci">PinsI2C()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a601fb7cf1fc15db50c71a826f084f934"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">audio_driver::PinsI2C::begin</a></div><div class="ttdeci">bool begin()</div><div class="ttdef"><b>Definition:</b> Pins.h:146</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a63c89c04d1feae07ca35558055155ffb"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">audio_driver::PinsI2C::port</a></div><div class="ttdeci">int port</div><div class="ttdef"><b>Definition:</b> Pins.h:138</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a682f8efbc92ac93c85e4f18798050bb7"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">audio_driver::PinsI2C::p_wire</a></div><div class="ttdeci">TwoWire * p_wire</div><div class="ttdef"><b>Definition:</b> Pins.h:142</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a964e0e55c51da6a06624e0f15f084b05"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a964e0e55c51da6a06624e0f15f084b05">audio_driver::PinsI2C::sda</a></div><div class="ttdeci">Pin sda</div><div class="ttdef"><b>Definition:</b> Pins.h:140</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ab632fb0b4d5156ea4df0b1e15410e913"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">audio_driver::PinsI2C::frequency</a></div><div class="ttdeci">uint32_t frequency</div><div class="ttdef"><b>Definition:</b> Pins.h:137</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ad52eccd1bc2d4dfdb82e132cd695898e"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">audio_driver::PinsI2C::pinsAvailable</a></div><div class="ttdeci">bool pinsAvailable()</div><div class="ttdef"><b>Definition:</b> Pins.h:143</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_afcc542ba9c5c0e2fbba65a0feab74508"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">audio_driver::PinsI2C::set_active</a></div><div class="ttdeci">bool set_active</div><div class="ttdef"><b>Definition:</b> Pins.h:141</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html">audio_driver::PinsI2S</a></div><div class="ttdoc">I2S pins.</div><div class="ttdef"><b>Definition:</b> Pins.h:35</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a028ec0cf0cbbe2eba287e7d623e230b2"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a028ec0cf0cbbe2eba287e7d623e230b2">audio_driver::PinsI2S::data_out</a></div><div class="ttdeci">Pin data_out</div><div class="ttdef"><b>Definition:</b> Pins.h:51</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a486e08135f1b6b249eae9b03d61cfc00"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a486e08135f1b6b249eae9b03d61cfc00">audio_driver::PinsI2S::mclk</a></div><div class="ttdeci">Pin mclk</div><div class="ttdef"><b>Definition:</b> Pins.h:48</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a5e6e78c05e863124b3a66b46fa4e2370"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">audio_driver::PinsI2S::PinsI2S</a></div><div class="ttdeci">PinsI2S()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a63c89c04d1feae07ca35558055155ffb"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">audio_driver::PinsI2S::port</a></div><div class="ttdeci">int port</div><div class="ttdef"><b>Definition:</b> Pins.h:53</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a766c70f69be9e38d88dc203917da752d"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a766c70f69be9e38d88dc203917da752d">audio_driver::PinsI2S::data_in</a></div><div class="ttdeci">Pin data_in</div><div class="ttdef"><b>Definition:</b> Pins.h:52</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a7e2b632624b902cb96e43d9baa634fa2"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a7e2b632624b902cb96e43d9baa634fa2">audio_driver::PinsI2S::PinsI2S</a></div><div class="ttdeci">PinsI2S(PinFunctionEnum function, Pin mclk, Pin bck, Pin ws, Pin data_out, Pin data_in=-1, int port=0)</div><div class="ttdef"><b>Definition:</b> Pins.h:37</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_ac32cdca204c897f8cfdba3e0017b9b82"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#ac32cdca204c897f8cfdba3e0017b9b82">audio_driver::PinsI2S::ws</a></div><div class="ttdeci">Pin ws</div><div class="ttdef"><b>Definition:</b> Pins.h:50</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_af8de1d912b3bce7c909b1a5182cff261"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#af8de1d912b3bce7c909b1a5182cff261">audio_driver::PinsI2S::bck</a></div><div class="ttdeci">Pin bck</div><div class="ttdef"><b>Definition:</b> Pins.h:49</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html">audio_driver::PinsSPI</a></div><div class="ttdoc">SPI pins.</div><div class="ttdef"><b>Definition:</b> Pins.h:59</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a20c88f1628e7ff6d475eac7e377da6f7"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a20c88f1628e7ff6d475eac7e377da6f7">audio_driver::PinsSPI::cs</a></div><div class="ttdeci">Pin cs</div><div class="ttdef"><b>Definition:</b> Pins.h:76</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a29fd5c1d00d342ec405d6dfecf250668"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a29fd5c1d00d342ec405d6dfecf250668">audio_driver::PinsSPI::miso</a></div><div class="ttdeci">Pin miso</div><div class="ttdef"><b>Definition:</b> Pins.h:74</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a601fb7cf1fc15db50c71a826f084f934"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">audio_driver::PinsSPI::begin</a></div><div class="ttdeci">bool begin()</div><div class="ttdef"><b>Definition:</b> Pins.h:80</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a7e3aed00eb1f288f9a7fb667184c93f9"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">audio_driver::PinsSPI::p_spi</a></div><div class="ttdeci">SPIClass * p_spi</div><div class="ttdef"><b>Definition:</b> Pins.h:72</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a9e6bf2f6b156bb4e785548e986c5d625"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a9e6bf2f6b156bb4e785548e986c5d625">audio_driver::PinsSPI::PinsSPI</a></div><div class="ttdeci">PinsSPI(PinFunctionEnum function, Pin clk, Pin miso, Pin mosi, Pin cs, SPIClass &amp;spi=SPI)</div><div class="ttdef"><b>Definition:</b> Pins.h:61</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aa9a3a832c5990cefede0e5fea95e2e6d"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aa9a3a832c5990cefede0e5fea95e2e6d">audio_driver::PinsSPI::clk</a></div><div class="ttdeci">Pin clk</div><div class="ttdef"><b>Definition:</b> Pins.h:73</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aaacbe29a5f1f6ddc9db766aba5c8155e"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">audio_driver::PinsSPI::PinsSPI</a></div><div class="ttdeci">PinsSPI()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aaf81d3fdaf258088d7692fa70cece087"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">audio_driver::PinsSPI::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> Pins.h:113</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_ab2945569017e6be201a5bfe45de12610"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#ab2945569017e6be201a5bfe45de12610">audio_driver::PinsSPI::mosi</a></div><div class="ttdeci">Pin mosi</div><div class="ttdef"><b>Definition:</b> Pins.h:75</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_ad52eccd1bc2d4dfdb82e132cd695898e"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">audio_driver::PinsSPI::pinsAvailable</a></div><div class="ttdeci">bool pinsAvailable()</div><div class="ttdef"><b>Definition:</b> Pins.h:78</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_afcc542ba9c5c0e2fbba65a0feab74508"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">audio_driver::PinsSPI::set_active</a></div><div class="ttdeci">bool set_active</div><div class="ttdef"><b>Definition:</b> Pins.h:77</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
